import { CommonType } from '../../../dto/common.type';
import { Field, ObjectType } from '@nestjs/graphql';

@ObjectType()
export class CardRecordType extends CommonType {
  @Field({
    description: '开始时间',
    nullable: true,
  })
  startTime: string;

  @Field({
    description: '结束时间',
    nullable: true,
  })
  endTime: string;

  @Field({
    description: '剩余次数',
    nullable: true,
  })
  residueTime: number;

  @Field({
    description: '包含商家消费卡',
  })
  card: string;

  @Field({
    description: '所属用户',
  })
  studentId: string;

  @Field({
    description: '所属门店',
  })
  orgId: string;
  @Field({
    description: '所属课程',
  })
  courseId: string;

  @Field({
    description: '所属商品',
  })
  productId: string;
}
